﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Books.Data.Model
{
    public class Book : AuditObject
    {
        [Key]

        public int BookId { get; set; }
        public string Title { get; set; }
        public string Author { get; set; }
        public string BookImage { get; set; }
        public int Rating { get; set; }
        public string UserId { get; set; }
        [ForeignKey("UserId")]

        public virtual User User { get; set; }
    }
}
